import React from 'react';
import { notification } from 'antd';

//公用message方法
const Message = (type, message) => {
    notification[type]({
        message,
        placement: 'top'
    });
};

export default Message;